<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$page_title}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="{$admin_temp_path}/css/general.css" rel="stylesheet" type="text/css" />
<link href="{$admin_temp_path}/css/main.css" rel="stylesheet" type="text/css" />
    <script charset="utf-8" src="http://map.qq.com/api/js?v=2.exp"></script>

{literal}
    <style type="text/css">
        *{
            margin:0px;
            padding:0px;
        }
        body, button, input, select, textarea {
            font: 12px/16px Verdana, Helvetica, Arial, sans-serif;
        }
        p{
            width:603px;
            padding-top:3px;
            overflow:hidden;
        }
        #container{
            min-width:600px;
            min-height:767px;
        }
    </style>

    <script>
        var citylocation,map,marker = null;
        function init(lng,lat) {
            var center = new qq.maps.LatLng(lat,lng);
            map = new qq.maps.Map(document.getElementById('container'),{
                center: center,
                zoom: 13
            });
            //调用城市服务信息
            citylocation = new qq.maps.CityService({
                complete : function(results){
                    map.setCenter(results.detail.latLng);

                    if (marker != null) {
                        marker.setMap(null);
                    }
                    //设置marker标记
                    marker = new qq.maps.Marker({
                        map: map,
                        position: results.detail.latLng
                    });
                }
            });
            geolocation_latlng(lng,lat)
        };

        function geolocation_latlng(lng,lat) {
            //设置经纬度信息
            var latLng = new qq.maps.LatLng(lat, lng);
            //调用城市经纬度查询接口实现经纬查询
            citylocation.searchCityByLatLng(latLng);
        }
    </script>
{/literal}
</head>
<body onload="init({$user.lng},{$user.lat})">
<h1>
<span class="action-span"><a href="javascript:history.back();">返回</a></span>
<span class="action-span1"><a href="">{$sys_name} 管理中心</a>  - {$page_title} </span>
<div style="clear:both"></div>
</h1>
<div id="container"></div>
</body>
</html>









